package com.example.myapplication.routertest
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import androidx.navigation.NavHostController

@Composable
fun Detail1(navController: NavHostController) {
    Text(
        "this is detail1, click to back home",
        style = TextStyle(
            fontSize = 24.sp,
        ),
        modifier = Modifier
            .padding(top = 30.dp)
            .clickable (
                onClick = {
                    navController.popBackStack()
                }
            )
    )
}